﻿<%@ Page Language="C#" MasterPageFile="~/cms/cms.master" AutoEventWireup="true" CodeFile="profile.aspx.cs" Inherits="cms_profile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="main-title">Thông tin người sử dụng:</div>
    <div class="main-content" style="margin-top:50px;">
        <center>
            <asp:Panel runat="server" ID="pnlReadOnly">
                <table border="0" width="500" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="2" class="createUserHeader">
                            TÊN TÀI KHOẢN: <b><% Response.Write(Membership.GetUser().UserName.ToUpper()); %></b>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow" width="100px">Họ đệm:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtLName" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Tên:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtFName" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Giới tính:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtGender" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Địa chỉ:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtAddress" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Email:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtEmail" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Điện thoại:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox ReadOnly="true" runat="server" ID="txtPhone" BorderStyle="None"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="right">
                            <asp:Button ID="btnEdit" runat="server" Text="Edit profile" 
                                onclick="btnEdit_Click" class="createUserButton" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel runat="server" ID="pnlEdit">
                <table border="0" width="500">
                    <tr>
                        <td colspan="2" class="createUserHeader">
                            TÊN TÀI KHOẢN: <b><% Response.Write(Membership.GetUser().UserName.ToUpper()); %></b>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow" width="100px">Họ đệm:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox runat="server" ID="txtLNameEdit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Tên:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox runat="server" ID="txtFNameEdit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Giới tính:</td>
                        <td align="left" class="createUserRow0" style="border-left:none;">
                            <asp:RadioButton ID="rbtMan" GroupName="gender" runat="server" Text="Nam" />
                            <asp:RadioButton ID="rbtWoman" GroupName="gender" runat="server" Text="Nữ" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Địa chỉ:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox runat="server" ID="txtAddressEdit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Email:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox runat="server" ID="txtEmailEdit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="createUserRow">Điện thoại:</td>
                        <td align="left" class="createUserRow" style="border-left:none;">
                            <asp:TextBox runat="server" ID="txtPhoneEdit"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="right">
                            <asp:Button ID="Button1" runat="server" Text="Save" class="createUserButton" 
                                onclick="Button1_Click" />
                            &nbsp;
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel"
                                OnClick="btnCancel_Click" class="createUserButton" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </center>
    </div>
</asp:Content>

